package com.test.ws.s1.mapper;

import com.test.ws.s1.bean.Imgs;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;

public interface ImagsDao {
    /// 查询附图
    public ArrayList<Imgs> selectImgs( @Param("routeId") String id,
                                       @Param("userName") String userName);
    /// 添加附图
    public int insertImgs(@Param("routeId") String id, @Param("img") Imgs imgs);

    /// 回显
    public Imgs selectImgsById(@Param("routeId") String id);

    /// 修改
    int updateImgs(@Param("routeId") String id, @Param("img") Imgs imgs);

    /// 删除
    public int deleteImgs(@Param("routeId") String id);

    /// 查看轮播
    public ArrayList<Imgs> selectImgsLunBo();

    /// 前台附图查看
    public ArrayList<Imgs> selectImgsCha(int id);
}
